package com.thug.engine;

import org.anddev.andengine.entity.scene.Scene;


public abstract class SceneState extends Scene
{
//private:
	private SceneManager mSceneMgr;
	private boolean mPaused;
	
//public:
	public SceneState(SceneManager s)
	{
		setSceneManager(s);
		setPaused(false);
	}
	
	public SceneManager getSceneMgr() { return mSceneMgr; }
	public void setSceneManager(SceneManager s) { mSceneMgr = s; }
	
	public boolean isPaused() { return mPaused; }
	public void setPaused(boolean p) { mPaused = p; }
	
	public abstract void onLoad();
	public abstract void onDestroy();
	
	public void onPause() { setPaused(true); }
	public void onResume() { setPaused(false); }
}
